import request from "@/utils/request";
import { PRODUCE } from "@/config/baseUrl.js";

// 查询品类、品种、品项选项值
export function getProductDict() {
  return request({
    url: `${PRODUCE}/reportAnalyze/analyzeProduceDay/getProductDict`,
    method: "get",
  });
}

// 根据时间累计生产效率、故障率
export function getSumLineYearProduce(data) {
  return request({
    url: `${PRODUCE}/reportAnalyze/analyzeProduceMonth/querySumLineYearProduce`,
    method: "post",
    data,
  });
}

// 根据时间累计生产效率、故障率详细数据(右侧表格)
export function getSumLineYearProduceDetail(data) {
  return request({
    url: `${PRODUCE}/reportAnalyze/analyzeProduceMonth/querySumLineYearProduceDetail`,
    method: "post",
    data,
  });
}

// 根据时间月生产效率、故障率
export function getMonthData(data) {
  return request({
    url: `${PRODUCE}/reportAnalyze/analyzeProduceMonth/queryMonthData`,
    method: "post",
    data,
  });
}

// 根据时间月生产效率、故障率详细数据（右侧表格）
export function getMonthDataDetail(data) {
  return request({
    url: `${PRODUCE}/reportAnalyze/analyzeProduceMonth/queryMonthDataDetail`,
    method: "post",
    data,
  });
}

// 根据时间日生产效率、故障率
export function getDayData(data) {
  return request({
    url: `${PRODUCE}/reportAnalyze/analyzeProduceDay/queryDayData`,
    method: "post",
    data,
  });
}

// 根据时间日生产效率、故障率详细数据（右侧表格）
export function getDayDataDetail(data) {
  return request({
    url: `${PRODUCE}/reportAnalyze/analyzeProduceDay/queryDayDataDetail`,
    method: "post",
    data,
  });
}

// 根据时间某一日生产效率、故障率详细数据
export function getDayDataDetailOfDay(data) {
  return request({
    url: `${PRODUCE}/reportAnalyze/analyzeProduceDay/queryDayDataDetailOfDay`,
    method: "post",
    data,
  });
}
